<template>
  <div class="m-no-data show">
    <span class="no-data-icon"></span>
    <div class="no-data-prompt">{{ text }}</div>
  </div>
</template>

<script>
export default {
  name: 'VueJiangduoduoComNoData',
  props: {
    text: {
      type: String,
      default: '暂时没有数据，先看看其他的吧～',
    },
  },
  data() {
    return {};
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
.m-no-data {
  display: none;
  padding: 50px 15px;

  &.show {
    display: block;
    &.full-none {
      display: flex;
    }
  }

  .no-data-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
    background: url("")
      no-repeat center center;
    background-size: contain;
  }

  .no-selection-icon {
    width: 96px;
    height: 79px;
    display: block;
    margin: 0 auto 15px;
    background: url("~@/assets/empty.png") no-repeat center center;
    background-size: contain;
  }

  .no-data-prompt {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding-top: 10px;
    .c-blue {
      color: #5e92fb;
    }
  }
  &.full-none {
    height: 80%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    box-sizing: border-box;
    padding: 60px 15px;
    .no-data-icon {
      width: 96px;
      height: 79px;
      display: block;
      margin: 0 auto 15px;
      background: url("~@/assets/empty.png") no-repeat center center;
      background-size: contain;
    }
    .no-data-prompt {
      font-size: 15px;
    }
  }
  .no-data-btn {
    width: 118px;
    height: 39px;
    color: #fff;
    font-size: 15px;
    text-align: center;
    line-height: 39px;
    border-radius: 5px;
    background: #f84848;
    margin: 50px auto 20px;
  }
}
</style>
